package cc.loach.homekit.hap.controlled.device.loach._lightbulb._light._protocolinformation;

import cc.loach.homekit.hap.controlled.device.loach._lightbulb._light._protocolinformation.properties.Version;
import cc.loach.homekit.hap.typedef.accessory.HapService;
import cc.loach.xiot.spec.definition.urn.ServiceType;

/**
 * 协议信息
 */
public class ProtocolInformation extends HapService {

    public static final int IID = 12;
    public static final String TYPE = "urn:homekit-spec:service:protocol-information:000000a2:loach:light:1";

    public ProtocolInformation() {
        super(IID, new ServiceType(TYPE));
        super.properties().put(Version.IID, new Version());
    }

    /**
     * Property: 版本
     */
    public Version _version() {
        return (Version) properties().get(Version.IID);
    }

}
